package com.smart.provider.common.response;

import lombok.Data;

/**
 * 公共的结果
 * http 状态吗
 * 业务状态  5-6
 *
 * @param <T>
 */
@Data
public class ResponseVo<T> {
    private int status;
    private String msg;
    private T data;

    public static <T> ResponseVo<T> success(T data) {
        ResponseVo<T> responseVo = new ResponseVo<>();
        responseVo.setData(data);
        responseVo.setMsg("success");
        responseVo.setStatus(200);
        return responseVo;
    }

}
